package com.example.sfm.service;

import com.example.sfm.pojo.dto.AwardsPunishmentsDto;
import com.example.sfm.pojo.dto.AwardsPunishmentsQueryDto;
import com.example.sfm.pojo.entity.AwardsPunishments;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sfm.result.PageResult;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author sfm
 * @since 2025-03-07
 */
public interface IAwardsPunishmentsService extends IService<AwardsPunishments> {

    void createRecord(AwardsPunishmentsDto dto);

    PageResult<?> listRecords(AwardsPunishmentsQueryDto dto);

    void updateRecord(Integer id, AwardsPunishmentsDto dto);

    void deleteRecords(List<Integer> ids);

    void importFromExcel(MultipartFile file);

    void exportExcel(HttpServletResponse response, AwardsPunishmentsQueryDto dto);

    Object getStats(Integer studentId);

}
